package com.xf.pm.common;

import java.io.Serializable;
import java.util.List;

/**
 * PageData.java
 * @author lb
 * 2017年6月2日
*/
public class PageData implements Serializable{

	private static final long serialVersionUID = 7611826153583680766L;

	/**
     * 总页数
     */
    private Long total;
    
    /**
     * 查询当前页数
     */
    private List<?> rows;
    
    /**
     * 临时存入的对象
     */
    private List<?> tempObject;
    
    /**
     * default constructor
     */
    public PageData(){
    	super();
    }
    
    
    /**
     * constructor with params
     * @param total
     * @param rows
     */
    public PageData(Long total, List<?> rows){
    	this.total = total;
    	this.rows = rows;
    }

	/**
	 * @return the total
	 */
	public Long getTotal() {
		return total;
	}

	/**
	 * @param total the total to set
	 */
	public void setTotal(Long total) {
		this.total = total;
	}

	/**
	 * @return the rows
	 */
	public List<?> getRows() {
		return rows;
	}

	/**
	 * @param rows the rows to set
	 */
	public void setRows(List<?> rows) {
		this.rows = rows;
	}


	public List<?> getTempObject() {
		return tempObject;
	}


	public void setTempObject(List<?> tempObject) {
		this.tempObject = tempObject;
	}
}
